<template>
  <div class="other-user-comment-list">
    <div class="comment-list-item" v-for="item in commentList" :key="item.id">
      <div>
        <i class="iconfont icon-24gf-bubbles4">{{ item.create_time }}</i>
        <span>评论于</span>
        <nuxt-link :to="'/content-article/' + item.article_id">{{
          item.title
        }}</nuxt-link>
      </div>
      <div>
        <a :href="'#/content-article/'+item.article_id">{{ item.content }}</a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    commentList: {
      type: Array,
    },
  },
};
</script>

<style lang="less" scoped>
.other-user-comment-list {
  .comment-list-item {
    font-size: 14px;
    div {
      i {
        font-size: 14px;
        color: #26262699;
        margin-right: 10px;
        &::before {
          margin-right: 5px;
        }
      }
      span {
        color: #26262699;
        margin-right: 5px;
      }
      &:nth-of-type(1) {
        line-height: 20px;
        margin-bottom: 12px;
        a {
          color: #08c;
        }
      }
      &:nth-of-type(2) {
        border-bottom: 1px solid #f0f0f0;
        line-height: 1.8;
        padding-bottom: 20px;
        margin-bottom: 20px;
        a {
          color: #262626;
        }
      }
      a {
        &:hover {
          color: #3361ea;
        }
      }
    }
  }
}
</style>